<%@ page import="com.onlineOrder.bean.userList" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: 12296
  Date: 2022/3/5
  Time: 19:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户列表</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" >
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap-theme.min.css" >
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" ></script>
</head>
<body>
<div class="container row=10">
<table class="table table-striped table-bordered table-hover">
    <tbody>
    <tr>
        <th>      </th>
        <th>用户账号</th>
        <th>用户昵称</th>
        <th>用户密码</th>
        <th>真实姓名</th>
        <th>手机号</th>
        <th>性别</th>
        <th>收餐地址</th>
    </tr>
    <%
        List<userList> userListList = (List<userList>)request.getAttribute("userList");
        //循环遍历
        int i=0;
        for (userList userList:userListList){
    %>


    <tr>
        <td><%=++i%></td>
        <td><%=userList.getUserId()%></td>
        <td><%=userList.getUserName()%></td>
        <td><%=userList.getPassword()%></td>
        <td><%=userList.getName()%></td>
        <td><%=userList.getPhone()%></td>
        <td><%=userList.getSex()%></td>
        <td><%=userList.getAddress()%></td>
    </tr>

    <%
        }
    %>

    </tbody>
</table>
</div>
</body>
</html>
